package cn.cloud.all.ribbon;

import cn.cloud.all.ribbon.server.Server;

import java.io.Serializable;
import java.util.Comparator;

public class ServerComparator implements Comparator<Server>, Serializable {

    @Override
    public int compare(Server s1, Server s2) {
        return s1.getHostPort().compareTo(s2.getId());
    }
}
